using System;
using UnityEngine;

namespace PKGames
{
	public class PluginListener : MonoBehaviour
	{
		public Action<string> Success;

		public Action<string> Error;

		public void OnSuccess(string message)
		{
			Success.Fire<string>(message);
			UnityEngine.Object.Destroy(base.gameObject);
		}

		public void OnError(string message)
		{
			Error.Fire<string>(message);
			UnityEngine.Object.Destroy(base.gameObject);
		}
	}
}
